<div class="dux-tools">
  <div class="bread-head">{$info.name}管理 <span class="small">可以添加或者修改{$info.name}</span> </div>
  <br>
  <div class="tools-function clearfix">
    <div class="float-left"> <a class="button button-small bg-main icon-list" href="__URL__/index/id-{$form_info.id}"> {$info.name}列表</a> </div>
    <?php if(model('user_group')->form_power($info['table'],'add')){ ?>
    <div class="button-group float-right"> <a class="button button-small bg-dot icon-plus dropdown-toggle"> 添加 <span class="downward"></span></a>
      <ul class="drop-menu pull-right">
        <li><a href="__URL__/add/id-{$form_info.id}">{$info.name}添加</a></li>
      </ul>
    </div>
    <?php } ?>
  </div>
</div>
<div class="admin-main">
  <form action="__URL__/{$action}_save/time-<?php echo time() ?>-ajax-true" method="post" id="form" class="form-x dux-form form-auto">
    <div class="panel dux-box  active">
    <div class="panel-head"> <strong>{$action_name}管理员</strong> </div>
    <div class="panel-body">
 		<!--foreach:{$field_list $vo}-->
      {$php( echo model('expand_model')->get_field_html($vo,$info[$vo['field']]))}
      <!--{/foreach}-->
    </div>
<?php if(model('user_group')->form_power($form_info['table'],'add')||model('user_group')->form_power($form_info['table'],'edit')){ ?>
    <!--普通提交-->
    <div class="panel-foot">
      <div class="form-button">
        <div id="tips"></div>
        <input name="id" type="hidden" value="{$info.id}" />
        <input name="fid" type="hidden" value="{$form_info.id}" />
        <input name="file_id" id="file_id" type="hidden" value="{$file_id}" />
        <button type="submit" class="button bg-main">保存</button>
      </div>
    </div>
    <?php } ?>
  </form>
</div>
</div>
<script type="text/javascript">
//提交表单
savelistform({addurl:"__URL__/add/id-{$form_info.id}",listurl:"__URL__/index/id-{$form_info.id}"});
</script>